package com.meilai.project.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author 张驰
 * @date 2021/3/8 16:37
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class SelectOptionVO {
    private String value;
    private String label;
    private String right_label;
    private Integer flag;
    private List<SelectOptionVO> options;
    private List<SelectOptionVO> children;
    private Integer leaf;

    public SelectOptionVO(String value, String label) {
        this.value = value;
        this.label = label;
    }

    public SelectOptionVO(String value, String label, Integer flag) {
        this.value = value;
        this.label = label;
        this.flag = flag;
    }

    public SelectOptionVO(String value, String label, String right_label, Integer flag) {
        this.value = value;
        this.label = label;
        this.right_label = right_label;
        this.flag = flag;
    }
}
